package edu.zzuli.model.dao;

import java.io.Serializable;

/**
 * @author tianshaojie
 * @date 2010-12-8
 * @discription :
 */
public abstract class BasePO implements SqlTemplate, Serializable {
	
	private static final long serialVersionUID = 3378311152817558688L;
	public static final String KEY_TYPE_INT = "INTEGER";
	public static final String KEY_TYPE_STRING = "STRING";
	public static final String KEY_TYPE_LONG = "LONG";
	public static final String KEY_TYPE_DOUBLE = "DOUBLE";
	protected static final int INT_INIT_VALUE = 2147483647;
	protected static final long LONG_INIT_VALUE = 9223372036854775807L;
	protected static final double DOUBLE_INIT_VALUE = Double.parseDouble(Double
			.toString(1.7976931348623157E+308D));

	protected BasePO() {
		initialize();
	}

	protected void initialize() {
	}

	public String getStrAliasName() {
		String strAliasName = "";
		String strTableName = getStrTableName();
		if (strTableName.length() > 1) {
			strAliasName = strTableName.substring(0, 1).toLowerCase()
					+ strTableName.substring(1, strTableName.length());
		}
		return strAliasName;
	}
}
